





using System;
using SubSonic.Schema;
using System.Collections.Generic;
using SubSonic.DataProviders;
using System.Data;

namespace MvcForum.Net.Business {
	

        /// <summary>
        /// Table: MF_Moderators
        /// Primary Key: ModId
        /// </summary>

        public class ModeratorsTable: DatabaseTable {
            
            public ModeratorsTable(IDataProvider provider):base("MF_Moderators",provider){
                ClassName = "Moderator";
                SchemaName = "dbo";
                


                Columns.Add(new DatabaseColumn("ModId", this)
                {
	                IsPrimaryKey = true,
	                DataType = DbType.Int32,
	                IsNullable = false,
	                AutoIncrement = true,
	                IsForeignKey = false,
	                MaxLength = 0
                });


                Columns.Add(new DatabaseColumn("UserId", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Int32,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });


                Columns.Add(new DatabaseColumn("ForumId", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Int32,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });
                    
                
                
            }
            

            public IColumn ModId{
                get{
                    return this.GetColumn("ModId");
                }
            }
            				
   			public static string ModIdColumn{
			      get{
        			return "ModId";
      			}
		    }
           

            public IColumn UserId{
                get{
                    return this.GetColumn("UserId");
                }
            }
            				
   			public static string UserIdColumn{
			      get{
        			return "UserId";
      			}
		    }
           

            public IColumn ForumId{
                get{
                    return this.GetColumn("ForumId");
                }
            }
            				
   			public static string ForumIdColumn{
			      get{
        			return "ForumId";
      			}
		    }
           
                    
        }
        

        /// <summary>
        /// Table: MF_Tags
        /// Primary Key: Id
        /// </summary>

        public class TagsTable: DatabaseTable {
            
            public TagsTable(IDataProvider provider):base("MF_Tags",provider){
                ClassName = "Tag";
                SchemaName = "dbo";
                


                Columns.Add(new DatabaseColumn("Id", this)
                {
	                IsPrimaryKey = true,
	                DataType = DbType.Int32,
	                IsNullable = false,
	                AutoIncrement = true,
	                IsForeignKey = false,
	                MaxLength = 0
                });


                Columns.Add(new DatabaseColumn("Tag", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 50
                });
                    
                
                
            }
            

            public IColumn Id{
                get{
                    return this.GetColumn("Id");
                }
            }
            				
   			public static string IdColumn{
			      get{
        			return "Id";
      			}
		    }
           

            public IColumn Tag{
                get{
                    return this.GetColumn("Tag");
                }
            }
            				
   			public static string TagColumn{
			      get{
        			return "Tag";
      			}
		    }
           
                    
        }
        

        /// <summary>
        /// Table: MF_Topics
        /// Primary Key: TopicId
        /// </summary>

        public class TopicsTable: DatabaseTable {
            
            public TopicsTable(IDataProvider provider):base("MF_Topics",provider){
                ClassName = "Topic";
                SchemaName = "dbo";
                


                Columns.Add(new DatabaseColumn("TopicId", this)
                {
	                IsPrimaryKey = true,
	                DataType = DbType.Int32,
	                IsNullable = false,
	                AutoIncrement = true,
	                IsForeignKey = false,
	                MaxLength = 0
                });


                Columns.Add(new DatabaseColumn("TopicName", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 256
                });


                Columns.Add(new DatabaseColumn("ForumId", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Int32,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });


                Columns.Add(new DatabaseColumn("PollID", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Int32,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });


                Columns.Add(new DatabaseColumn("Icon", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.AnsiString,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 50
                });


                Columns.Add(new DatabaseColumn("Message", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 1073741823
                });


                Columns.Add(new DatabaseColumn("ReplyTo", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Int32,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });


                Columns.Add(new DatabaseColumn("Priority", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Byte,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });


                Columns.Add(new DatabaseColumn("PriorityDate", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.DateTime,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });


                Columns.Add(new DatabaseColumn("IsApproved", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Boolean,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });


                Columns.Add(new DatabaseColumn("TotalViews", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Int32,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });


                Columns.Add(new DatabaseColumn("TotalReplies", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Int32,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });


                Columns.Add(new DatabaseColumn("IsDeleted", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Boolean,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });


                Columns.Add(new DatabaseColumn("IsLocked", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Boolean,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });


                Columns.Add(new DatabaseColumn("RemoteUrl", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 256
                });


                Columns.Add(new DatabaseColumn("Created", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.DateTime,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });


                Columns.Add(new DatabaseColumn("MovedToForumId", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Int32,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });


                Columns.Add(new DatabaseColumn("LastEdited", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.DateTime,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });


                Columns.Add(new DatabaseColumn("EditedBy", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 100
                });


                Columns.Add(new DatabaseColumn("IP", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.AnsiString,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 20
                });


                Columns.Add(new DatabaseColumn("Tags", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 200
                });


                Columns.Add(new DatabaseColumn("UserId", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Int32,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });


                Columns.Add(new DatabaseColumn("UserName", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 100
                });


                Columns.Add(new DatabaseColumn("LastPosted", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.DateTime,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });


                Columns.Add(new DatabaseColumn("LastPostId", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Int32,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });


                Columns.Add(new DatabaseColumn("LastUserId", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Int32,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });


                Columns.Add(new DatabaseColumn("LastUserName", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 50
                });
                    
                
                
            }
            

            public IColumn TopicId{
                get{
                    return this.GetColumn("TopicId");
                }
            }
            				
   			public static string TopicIdColumn{
			      get{
        			return "TopicId";
      			}
		    }
           

            public IColumn TopicName{
                get{
                    return this.GetColumn("TopicName");
                }
            }
            				
   			public static string TopicNameColumn{
			      get{
        			return "TopicName";
      			}
		    }
           

            public IColumn ForumId{
                get{
                    return this.GetColumn("ForumId");
                }
            }
            				
   			public static string ForumIdColumn{
			      get{
        			return "ForumId";
      			}
		    }
           

            public IColumn PollID{
                get{
                    return this.GetColumn("PollID");
                }
            }
            				
   			public static string PollIDColumn{
			      get{
        			return "PollID";
      			}
		    }
           

            public IColumn Icon{
                get{
                    return this.GetColumn("Icon");
                }
            }
            				
   			public static string IconColumn{
			      get{
        			return "Icon";
      			}
		    }
           

            public IColumn Message{
                get{
                    return this.GetColumn("Message");
                }
            }
            				
   			public static string MessageColumn{
			      get{
        			return "Message";
      			}
		    }
           

            public IColumn ReplyTo{
                get{
                    return this.GetColumn("ReplyTo");
                }
            }
            				
   			public static string ReplyToColumn{
			      get{
        			return "ReplyTo";
      			}
		    }
           

            public IColumn Priority{
                get{
                    return this.GetColumn("Priority");
                }
            }
            				
   			public static string PriorityColumn{
			      get{
        			return "Priority";
      			}
		    }
           

            public IColumn PriorityDate{
                get{
                    return this.GetColumn("PriorityDate");
                }
            }
            				
   			public static string PriorityDateColumn{
			      get{
        			return "PriorityDate";
      			}
		    }
           

            public IColumn IsApproved{
                get{
                    return this.GetColumn("IsApproved");
                }
            }
            				
   			public static string IsApprovedColumn{
			      get{
        			return "IsApproved";
      			}
		    }
           

            public IColumn TotalViews{
                get{
                    return this.GetColumn("TotalViews");
                }
            }
            				
   			public static string TotalViewsColumn{
			      get{
        			return "TotalViews";
      			}
		    }
           

            public IColumn TotalReplies{
                get{
                    return this.GetColumn("TotalReplies");
                }
            }
            				
   			public static string TotalRepliesColumn{
			      get{
        			return "TotalReplies";
      			}
		    }
           

            public IColumn IsDeleted{
                get{
                    return this.GetColumn("IsDeleted");
                }
            }
            				
   			public static string IsDeletedColumn{
			      get{
        			return "IsDeleted";
      			}
		    }
           

            public IColumn IsLocked{
                get{
                    return this.GetColumn("IsLocked");
                }
            }
            				
   			public static string IsLockedColumn{
			      get{
        			return "IsLocked";
      			}
		    }
           

            public IColumn RemoteUrl{
                get{
                    return this.GetColumn("RemoteUrl");
                }
            }
            				
   			public static string RemoteUrlColumn{
			      get{
        			return "RemoteUrl";
      			}
		    }
           

            public IColumn Created{
                get{
                    return this.GetColumn("Created");
                }
            }
            				
   			public static string CreatedColumn{
			      get{
        			return "Created";
      			}
		    }
           

            public IColumn MovedToForumId{
                get{
                    return this.GetColumn("MovedToForumId");
                }
            }
            				
   			public static string MovedToForumIdColumn{
			      get{
        			return "MovedToForumId";
      			}
		    }
           

            public IColumn LastEdited{
                get{
                    return this.GetColumn("LastEdited");
                }
            }
            				
   			public static string LastEditedColumn{
			      get{
        			return "LastEdited";
      			}
		    }
           

            public IColumn EditedBy{
                get{
                    return this.GetColumn("EditedBy");
                }
            }
            				
   			public static string EditedByColumn{
			      get{
        			return "EditedBy";
      			}
		    }
           

            public IColumn IP{
                get{
                    return this.GetColumn("IP");
                }
            }
            				
   			public static string IPColumn{
			      get{
        			return "IP";
      			}
		    }
           

            public IColumn Tags{
                get{
                    return this.GetColumn("Tags");
                }
            }
            				
   			public static string TagsColumn{
			      get{
        			return "Tags";
      			}
		    }
           

            public IColumn UserId{
                get{
                    return this.GetColumn("UserId");
                }
            }
            				
   			public static string UserIdColumn{
			      get{
        			return "UserId";
      			}
		    }
           

            public IColumn UserName{
                get{
                    return this.GetColumn("UserName");
                }
            }
            				
   			public static string UserNameColumn{
			      get{
        			return "UserName";
      			}
		    }
           

            public IColumn LastPosted{
                get{
                    return this.GetColumn("LastPosted");
                }
            }
            				
   			public static string LastPostedColumn{
			      get{
        			return "LastPosted";
      			}
		    }
           

            public IColumn LastPostId{
                get{
                    return this.GetColumn("LastPostId");
                }
            }
            				
   			public static string LastPostIdColumn{
			      get{
        			return "LastPostId";
      			}
		    }
           

            public IColumn LastUserId{
                get{
                    return this.GetColumn("LastUserId");
                }
            }
            				
   			public static string LastUserIdColumn{
			      get{
        			return "LastUserId";
      			}
		    }
           

            public IColumn LastUserName{
                get{
                    return this.GetColumn("LastUserName");
                }
            }
            				
   			public static string LastUserNameColumn{
			      get{
        			return "LastUserName";
      			}
		    }
           
                    
        }
        

        /// <summary>
        /// Table: MF_Languages
        /// Primary Key: LangId
        /// </summary>

        public class LanguagesTable: DatabaseTable {
            
            public LanguagesTable(IDataProvider provider):base("MF_Languages",provider){
                ClassName = "Language";
                SchemaName = "dbo";
                


                Columns.Add(new DatabaseColumn("LangId", this)
                {
	                IsPrimaryKey = true,
	                DataType = DbType.AnsiStringFixedLength,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 2
                });


                Columns.Add(new DatabaseColumn("LangName", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 50
                });
                    
                
                
            }
            

            public IColumn LangId{
                get{
                    return this.GetColumn("LangId");
                }
            }
            				
   			public static string LangIdColumn{
			      get{
        			return "LangId";
      			}
		    }
           

            public IColumn LangName{
                get{
                    return this.GetColumn("LangName");
                }
            }
            				
   			public static string LangNameColumn{
			      get{
        			return "LangName";
      			}
		    }
           
                    
        }
        

        /// <summary>
        /// Table: MF_Subscriptions
        /// Primary Key: SubId
        /// </summary>

        public class SubscriptionsTable: DatabaseTable {
            
            public SubscriptionsTable(IDataProvider provider):base("MF_Subscriptions",provider){
                ClassName = "Subscription";
                SchemaName = "dbo";
                


                Columns.Add(new DatabaseColumn("SubId", this)
                {
	                IsPrimaryKey = true,
	                DataType = DbType.Int32,
	                IsNullable = false,
	                AutoIncrement = true,
	                IsForeignKey = false,
	                MaxLength = 0
                });


                Columns.Add(new DatabaseColumn("ForumId", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Int32,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });


                Columns.Add(new DatabaseColumn("TopicId", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Int32,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });


                Columns.Add(new DatabaseColumn("UserId", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Int32,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });


                Columns.Add(new DatabaseColumn("NotificationType", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Int16,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });


                Columns.Add(new DatabaseColumn("Created", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.DateTime,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });


                Columns.Add(new DatabaseColumn("LastEmail", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.DateTime,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });
                    
                
                
            }
            

            public IColumn SubId{
                get{
                    return this.GetColumn("SubId");
                }
            }
            				
   			public static string SubIdColumn{
			      get{
        			return "SubId";
      			}
		    }
           

            public IColumn ForumId{
                get{
                    return this.GetColumn("ForumId");
                }
            }
            				
   			public static string ForumIdColumn{
			      get{
        			return "ForumId";
      			}
		    }
           

            public IColumn TopicId{
                get{
                    return this.GetColumn("TopicId");
                }
            }
            				
   			public static string TopicIdColumn{
			      get{
        			return "TopicId";
      			}
		    }
           

            public IColumn UserId{
                get{
                    return this.GetColumn("UserId");
                }
            }
            				
   			public static string UserIdColumn{
			      get{
        			return "UserId";
      			}
		    }
           

            public IColumn NotificationType{
                get{
                    return this.GetColumn("NotificationType");
                }
            }
            				
   			public static string NotificationTypeColumn{
			      get{
        			return "NotificationType";
      			}
		    }
           

            public IColumn Created{
                get{
                    return this.GetColumn("Created");
                }
            }
            				
   			public static string CreatedColumn{
			      get{
        			return "Created";
      			}
		    }
           

            public IColumn LastEmail{
                get{
                    return this.GetColumn("LastEmail");
                }
            }
            				
   			public static string LastEmailColumn{
			      get{
        			return "LastEmail";
      			}
		    }
           
                    
        }
        

        /// <summary>
        /// Table: MF_Smiles
        /// Primary Key: 
        /// </summary>

        public class SmilesTable: DatabaseTable {
            
            public SmilesTable(IDataProvider provider):base("MF_Smiles",provider){
                ClassName = "Smile";
                SchemaName = "dbo";
                


                Columns.Add(new DatabaseColumn("Id", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Int32,
	                IsNullable = false,
	                AutoIncrement = true,
	                IsForeignKey = false,
	                MaxLength = 0
                });


                Columns.Add(new DatabaseColumn("Icon", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.AnsiString,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 20
                });
                    
                
                
            }
            

            public IColumn Id{
                get{
                    return this.GetColumn("Id");
                }
            }
            				
   			public static string IdColumn{
			      get{
        			return "Id";
      			}
		    }
           

            public IColumn Icon{
                get{
                    return this.GetColumn("Icon");
                }
            }
            				
   			public static string IconColumn{
			      get{
        			return "Icon";
      			}
		    }
           
                    
        }
        

        /// <summary>
        /// Table: MF_PrivateMessages
        /// Primary Key: PMId
        /// </summary>

        public class PrivateMessagesTable: DatabaseTable {
            
            public PrivateMessagesTable(IDataProvider provider):base("MF_PrivateMessages",provider){
                ClassName = "PrivateMessage";
                SchemaName = "dbo";
                


                Columns.Add(new DatabaseColumn("PMId", this)
                {
	                IsPrimaryKey = true,
	                DataType = DbType.Int32,
	                IsNullable = false,
	                AutoIncrement = true,
	                IsForeignKey = false,
	                MaxLength = 0
                });


                Columns.Add(new DatabaseColumn("From", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Int32,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });


                Columns.Add(new DatabaseColumn("To", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Int32,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });


                Columns.Add(new DatabaseColumn("Subject", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 200
                });


                Columns.Add(new DatabaseColumn("Message", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 1073741823
                });


                Columns.Add(new DatabaseColumn("Created", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.DateTime,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });


                Columns.Add(new DatabaseColumn("Folder", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Int16,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });


                Columns.Add(new DatabaseColumn("IsRead", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Boolean,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });


                Columns.Add(new DatabaseColumn("ReadReceipt", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Boolean,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });


                Columns.Add(new DatabaseColumn("DeletedFromInbox", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Boolean,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });


                Columns.Add(new DatabaseColumn("DeletedFromSendItems", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Boolean,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });
                    
                
                
            }
            

            public IColumn PMId{
                get{
                    return this.GetColumn("PMId");
                }
            }
            				
   			public static string PMIdColumn{
			      get{
        			return "PMId";
      			}
		    }
           

            public IColumn From{
                get{
                    return this.GetColumn("From");
                }
            }
            				
   			public static string FromColumn{
			      get{
        			return "From";
      			}
		    }
           

            public IColumn To{
                get{
                    return this.GetColumn("To");
                }
            }
            				
   			public static string ToColumn{
			      get{
        			return "To";
      			}
		    }
           

            public IColumn Subject{
                get{
                    return this.GetColumn("Subject");
                }
            }
            				
   			public static string SubjectColumn{
			      get{
        			return "Subject";
      			}
		    }
           

            public IColumn Message{
                get{
                    return this.GetColumn("Message");
                }
            }
            				
   			public static string MessageColumn{
			      get{
        			return "Message";
      			}
		    }
           

            public IColumn Created{
                get{
                    return this.GetColumn("Created");
                }
            }
            				
   			public static string CreatedColumn{
			      get{
        			return "Created";
      			}
		    }
           

            public IColumn Folder{
                get{
                    return this.GetColumn("Folder");
                }
            }
            				
   			public static string FolderColumn{
			      get{
        			return "Folder";
      			}
		    }
           

            public IColumn IsRead{
                get{
                    return this.GetColumn("IsRead");
                }
            }
            				
   			public static string IsReadColumn{
			      get{
        			return "IsRead";
      			}
		    }
           

            public IColumn ReadReceipt{
                get{
                    return this.GetColumn("ReadReceipt");
                }
            }
            				
   			public static string ReadReceiptColumn{
			      get{
        			return "ReadReceipt";
      			}
		    }
           

            public IColumn DeletedFromInbox{
                get{
                    return this.GetColumn("DeletedFromInbox");
                }
            }
            				
   			public static string DeletedFromInboxColumn{
			      get{
        			return "DeletedFromInbox";
      			}
		    }
           

            public IColumn DeletedFromSendItems{
                get{
                    return this.GetColumn("DeletedFromSendItems");
                }
            }
            				
   			public static string DeletedFromSendItemsColumn{
			      get{
        			return "DeletedFromSendItems";
      			}
		    }
           
                    
        }
        

        /// <summary>
        /// Table: MF_Polls
        /// Primary Key: PollId
        /// </summary>

        public class PollsTable: DatabaseTable {
            
            public PollsTable(IDataProvider provider):base("MF_Polls",provider){
                ClassName = "Poll";
                SchemaName = "dbo";
                


                Columns.Add(new DatabaseColumn("PollId", this)
                {
	                IsPrimaryKey = true,
	                DataType = DbType.Int32,
	                IsNullable = false,
	                AutoIncrement = true,
	                IsForeignKey = false,
	                MaxLength = 0
                });


                Columns.Add(new DatabaseColumn("Question", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 256
                });


                Columns.Add(new DatabaseColumn("EndDate", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.DateTime,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });
                    
                
                
            }
            

            public IColumn PollId{
                get{
                    return this.GetColumn("PollId");
                }
            }
            				
   			public static string PollIdColumn{
			      get{
        			return "PollId";
      			}
		    }
           

            public IColumn Question{
                get{
                    return this.GetColumn("Question");
                }
            }
            				
   			public static string QuestionColumn{
			      get{
        			return "Question";
      			}
		    }
           

            public IColumn EndDate{
                get{
                    return this.GetColumn("EndDate");
                }
            }
            				
   			public static string EndDateColumn{
			      get{
        			return "EndDate";
      			}
		    }
           
                    
        }
        

        /// <summary>
        /// Table: MF_PollAnswers
        /// Primary Key: AnswerId
        /// </summary>

        public class PollAnswersTable: DatabaseTable {
            
            public PollAnswersTable(IDataProvider provider):base("MF_PollAnswers",provider){
                ClassName = "PollAnswer";
                SchemaName = "dbo";
                


                Columns.Add(new DatabaseColumn("AnswerId", this)
                {
	                IsPrimaryKey = true,
	                DataType = DbType.Int32,
	                IsNullable = false,
	                AutoIncrement = true,
	                IsForeignKey = false,
	                MaxLength = 0
                });


                Columns.Add(new DatabaseColumn("Answer", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 256
                });


                Columns.Add(new DatabaseColumn("PollId", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Int32,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });


                Columns.Add(new DatabaseColumn("Votes", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Int32,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });
                    
                
                
            }
            

            public IColumn AnswerId{
                get{
                    return this.GetColumn("AnswerId");
                }
            }
            				
   			public static string AnswerIdColumn{
			      get{
        			return "AnswerId";
      			}
		    }
           

            public IColumn Answer{
                get{
                    return this.GetColumn("Answer");
                }
            }
            				
   			public static string AnswerColumn{
			      get{
        			return "Answer";
      			}
		    }
           

            public IColumn PollId{
                get{
                    return this.GetColumn("PollId");
                }
            }
            				
   			public static string PollIdColumn{
			      get{
        			return "PollId";
      			}
		    }
           

            public IColumn Votes{
                get{
                    return this.GetColumn("Votes");
                }
            }
            				
   			public static string VotesColumn{
			      get{
        			return "Votes";
      			}
		    }
           
                    
        }
        

        /// <summary>
        /// Table: MF_TimeZones
        /// Primary Key: TimeZoneId
        /// </summary>

        public class TimeZonesTable: DatabaseTable {
            
            public TimeZonesTable(IDataProvider provider):base("MF_TimeZones",provider){
                ClassName = "TimeZone";
                SchemaName = "dbo";
                


                Columns.Add(new DatabaseColumn("TimeZoneId", this)
                {
	                IsPrimaryKey = true,
	                DataType = DbType.Int32,
	                IsNullable = false,
	                AutoIncrement = true,
	                IsForeignKey = false,
	                MaxLength = 0
                });


                Columns.Add(new DatabaseColumn("Offset", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Double,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });


                Columns.Add(new DatabaseColumn("ZoneName", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 200
                });
                    
                
                
            }
            

            public IColumn TimeZoneId{
                get{
                    return this.GetColumn("TimeZoneId");
                }
            }
            				
   			public static string TimeZoneIdColumn{
			      get{
        			return "TimeZoneId";
      			}
		    }
           

            public IColumn Offset{
                get{
                    return this.GetColumn("Offset");
                }
            }
            				
   			public static string OffsetColumn{
			      get{
        			return "Offset";
      			}
		    }
           

            public IColumn ZoneName{
                get{
                    return this.GetColumn("ZoneName");
                }
            }
            				
   			public static string ZoneNameColumn{
			      get{
        			return "ZoneName";
      			}
		    }
           
                    
        }
        

        /// <summary>
        /// Table: MF_Forums
        /// Primary Key: ForumId
        /// </summary>

        public class ForumsTable: DatabaseTable {
            
            public ForumsTable(IDataProvider provider):base("MF_Forums",provider){
                ClassName = "Forum";
                SchemaName = "dbo";
                


                Columns.Add(new DatabaseColumn("ForumId", this)
                {
	                IsPrimaryKey = true,
	                DataType = DbType.Int32,
	                IsNullable = false,
	                AutoIncrement = true,
	                IsForeignKey = false,
	                MaxLength = 0
                });


                Columns.Add(new DatabaseColumn("ForumName", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 250
                });


                Columns.Add(new DatabaseColumn("ParentId", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Int32,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });


                Columns.Add(new DatabaseColumn("Keywords", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 250
                });


                Columns.Add(new DatabaseColumn("Description", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 440
                });


                Columns.Add(new DatabaseColumn("SortOrder", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Int16,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });


                Columns.Add(new DatabaseColumn("RemoteUrl", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 256
                });


                Columns.Add(new DatabaseColumn("IsLocked", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Boolean,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });


                Columns.Add(new DatabaseColumn("AllowPostWithIn", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Boolean,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });


                Columns.Add(new DatabaseColumn("ModerateType", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Int16,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });


                Columns.Add(new DatabaseColumn("AllowRoles", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.AnsiString,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 50
                });


                Columns.Add(new DatabaseColumn("VisibleAtHomePage", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Boolean,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });


                Columns.Add(new DatabaseColumn("TotalTopics", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Int64,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });


                Columns.Add(new DatabaseColumn("TotalReplies", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Int64,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });


                Columns.Add(new DatabaseColumn("LastPostId", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Int32,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });


                Columns.Add(new DatabaseColumn("LastPostTitle", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 250
                });


                Columns.Add(new DatabaseColumn("LastPostDate", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.DateTime,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });


                Columns.Add(new DatabaseColumn("LastUserPost", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.AnsiString,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 64
                });
                    
                
                
            }
            

            public IColumn ForumId{
                get{
                    return this.GetColumn("ForumId");
                }
            }
            				
   			public static string ForumIdColumn{
			      get{
        			return "ForumId";
      			}
		    }
           

            public IColumn ForumName{
                get{
                    return this.GetColumn("ForumName");
                }
            }
            				
   			public static string ForumNameColumn{
			      get{
        			return "ForumName";
      			}
		    }
           

            public IColumn ParentId{
                get{
                    return this.GetColumn("ParentId");
                }
            }
            				
   			public static string ParentIdColumn{
			      get{
        			return "ParentId";
      			}
		    }
           

            public IColumn Keywords{
                get{
                    return this.GetColumn("Keywords");
                }
            }
            				
   			public static string KeywordsColumn{
			      get{
        			return "Keywords";
      			}
		    }
           

            public IColumn Description{
                get{
                    return this.GetColumn("Description");
                }
            }
            				
   			public static string DescriptionColumn{
			      get{
        			return "Description";
      			}
		    }
           

            public IColumn SortOrder{
                get{
                    return this.GetColumn("SortOrder");
                }
            }
            				
   			public static string SortOrderColumn{
			      get{
        			return "SortOrder";
      			}
		    }
           

            public IColumn RemoteUrl{
                get{
                    return this.GetColumn("RemoteUrl");
                }
            }
            				
   			public static string RemoteUrlColumn{
			      get{
        			return "RemoteUrl";
      			}
		    }
           

            public IColumn IsLocked{
                get{
                    return this.GetColumn("IsLocked");
                }
            }
            				
   			public static string IsLockedColumn{
			      get{
        			return "IsLocked";
      			}
		    }
           

            public IColumn AllowPostWithIn{
                get{
                    return this.GetColumn("AllowPostWithIn");
                }
            }
            				
   			public static string AllowPostWithInColumn{
			      get{
        			return "AllowPostWithIn";
      			}
		    }
           

            public IColumn ModerateType{
                get{
                    return this.GetColumn("ModerateType");
                }
            }
            				
   			public static string ModerateTypeColumn{
			      get{
        			return "ModerateType";
      			}
		    }
           

            public IColumn AllowRoles{
                get{
                    return this.GetColumn("AllowRoles");
                }
            }
            				
   			public static string AllowRolesColumn{
			      get{
        			return "AllowRoles";
      			}
		    }
           

            public IColumn VisibleAtHomePage{
                get{
                    return this.GetColumn("VisibleAtHomePage");
                }
            }
            				
   			public static string VisibleAtHomePageColumn{
			      get{
        			return "VisibleAtHomePage";
      			}
		    }
           

            public IColumn TotalTopics{
                get{
                    return this.GetColumn("TotalTopics");
                }
            }
            				
   			public static string TotalTopicsColumn{
			      get{
        			return "TotalTopics";
      			}
		    }
           

            public IColumn TotalReplies{
                get{
                    return this.GetColumn("TotalReplies");
                }
            }
            				
   			public static string TotalRepliesColumn{
			      get{
        			return "TotalReplies";
      			}
		    }
           

            public IColumn LastPostId{
                get{
                    return this.GetColumn("LastPostId");
                }
            }
            				
   			public static string LastPostIdColumn{
			      get{
        			return "LastPostId";
      			}
		    }
           

            public IColumn LastPostTitle{
                get{
                    return this.GetColumn("LastPostTitle");
                }
            }
            				
   			public static string LastPostTitleColumn{
			      get{
        			return "LastPostTitle";
      			}
		    }
           

            public IColumn LastPostDate{
                get{
                    return this.GetColumn("LastPostDate");
                }
            }
            				
   			public static string LastPostDateColumn{
			      get{
        			return "LastPostDate";
      			}
		    }
           

            public IColumn LastUserPost{
                get{
                    return this.GetColumn("LastUserPost");
                }
            }
            				
   			public static string LastUserPostColumn{
			      get{
        			return "LastUserPost";
      			}
		    }
           
                    
        }
        

        /// <summary>
        /// Table: MF_UsersActions
        /// Primary Key: SessionId
        /// </summary>

        public class UsersActionsTable: DatabaseTable {
            
            public UsersActionsTable(IDataProvider provider):base("MF_UsersActions",provider){
                ClassName = "UsersAction";
                SchemaName = "dbo";
                


                Columns.Add(new DatabaseColumn("SessionId", this)
                {
	                IsPrimaryKey = true,
	                DataType = DbType.AnsiString,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 35
                });


                Columns.Add(new DatabaseColumn("UserId", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Int32,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });


                Columns.Add(new DatabaseColumn("UserName", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 100
                });


                Columns.Add(new DatabaseColumn("IP", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.AnsiString,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 20
                });


                Columns.Add(new DatabaseColumn("Login", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.DateTime,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });


                Columns.Add(new DatabaseColumn("LastAction", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.DateTime,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });


                Columns.Add(new DatabaseColumn("PageTitle", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 272
                });


                Columns.Add(new DatabaseColumn("Location", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 272
                });


                Columns.Add(new DatabaseColumn("ForumId", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Int32,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });


                Columns.Add(new DatabaseColumn("TopicId", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Int32,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });


                Columns.Add(new DatabaseColumn("Browser", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 100
                });


                Columns.Add(new DatabaseColumn("Platform", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 100
                });
                    
                
                
            }
            

            public IColumn SessionId{
                get{
                    return this.GetColumn("SessionId");
                }
            }
            				
   			public static string SessionIdColumn{
			      get{
        			return "SessionId";
      			}
		    }
           

            public IColumn UserId{
                get{
                    return this.GetColumn("UserId");
                }
            }
            				
   			public static string UserIdColumn{
			      get{
        			return "UserId";
      			}
		    }
           

            public IColumn UserName{
                get{
                    return this.GetColumn("UserName");
                }
            }
            				
   			public static string UserNameColumn{
			      get{
        			return "UserName";
      			}
		    }
           

            public IColumn IP{
                get{
                    return this.GetColumn("IP");
                }
            }
            				
   			public static string IPColumn{
			      get{
        			return "IP";
      			}
		    }
           

            public IColumn Login{
                get{
                    return this.GetColumn("Login");
                }
            }
            				
   			public static string LoginColumn{
			      get{
        			return "Login";
      			}
		    }
           

            public IColumn LastAction{
                get{
                    return this.GetColumn("LastAction");
                }
            }
            				
   			public static string LastActionColumn{
			      get{
        			return "LastAction";
      			}
		    }
           

            public IColumn PageTitle{
                get{
                    return this.GetColumn("PageTitle");
                }
            }
            				
   			public static string PageTitleColumn{
			      get{
        			return "PageTitle";
      			}
		    }
           

            public IColumn Location{
                get{
                    return this.GetColumn("Location");
                }
            }
            				
   			public static string LocationColumn{
			      get{
        			return "Location";
      			}
		    }
           

            public IColumn ForumId{
                get{
                    return this.GetColumn("ForumId");
                }
            }
            				
   			public static string ForumIdColumn{
			      get{
        			return "ForumId";
      			}
		    }
           

            public IColumn TopicId{
                get{
                    return this.GetColumn("TopicId");
                }
            }
            				
   			public static string TopicIdColumn{
			      get{
        			return "TopicId";
      			}
		    }
           

            public IColumn Browser{
                get{
                    return this.GetColumn("Browser");
                }
            }
            				
   			public static string BrowserColumn{
			      get{
        			return "Browser";
      			}
		    }
           

            public IColumn Platform{
                get{
                    return this.GetColumn("Platform");
                }
            }
            				
   			public static string PlatformColumn{
			      get{
        			return "Platform";
      			}
		    }
           
                    
        }
        

        /// <summary>
        /// Table: MF_Statistics
        /// Primary Key: ID
        /// </summary>

        public class StatisticsTable: DatabaseTable {
            
            public StatisticsTable(IDataProvider provider):base("MF_Statistics",provider){
                ClassName = "Statistic";
                SchemaName = "dbo";
                


                Columns.Add(new DatabaseColumn("ID", this)
                {
	                IsPrimaryKey = true,
	                DataType = DbType.Byte,
	                IsNullable = false,
	                AutoIncrement = true,
	                IsForeignKey = false,
	                MaxLength = 0
                });


                Columns.Add(new DatabaseColumn("Created", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.DateTime,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });


                Columns.Add(new DatabaseColumn("TotalUsersOnline", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Int32,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });


                Columns.Add(new DatabaseColumn("Guests", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Int32,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });


                Columns.Add(new DatabaseColumn("TotalUsers", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Int32,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });


                Columns.Add(new DatabaseColumn("TotalTopics", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Int32,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });


                Columns.Add(new DatabaseColumn("TotalPosts", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Int32,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });


                Columns.Add(new DatabaseColumn("NewPostsInPast24Hours", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Int32,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });


                Columns.Add(new DatabaseColumn("NewTopicsInPast24Hours", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Int32,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });


                Columns.Add(new DatabaseColumn("NewUsersInPast24Hours", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Int32,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });


                Columns.Add(new DatabaseColumn("NewestUserID", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 104
                });
                    
                
                
            }
            

            public IColumn ID{
                get{
                    return this.GetColumn("ID");
                }
            }
            				
   			public static string IDColumn{
			      get{
        			return "ID";
      			}
		    }
           

            public IColumn Created{
                get{
                    return this.GetColumn("Created");
                }
            }
            				
   			public static string CreatedColumn{
			      get{
        			return "Created";
      			}
		    }
           

            public IColumn TotalUsersOnline{
                get{
                    return this.GetColumn("TotalUsersOnline");
                }
            }
            				
   			public static string TotalUsersOnlineColumn{
			      get{
        			return "TotalUsersOnline";
      			}
		    }
           

            public IColumn Guests{
                get{
                    return this.GetColumn("Guests");
                }
            }
            				
   			public static string GuestsColumn{
			      get{
        			return "Guests";
      			}
		    }
           

            public IColumn TotalUsers{
                get{
                    return this.GetColumn("TotalUsers");
                }
            }
            				
   			public static string TotalUsersColumn{
			      get{
        			return "TotalUsers";
      			}
		    }
           

            public IColumn TotalTopics{
                get{
                    return this.GetColumn("TotalTopics");
                }
            }
            				
   			public static string TotalTopicsColumn{
			      get{
        			return "TotalTopics";
      			}
		    }
           

            public IColumn TotalPosts{
                get{
                    return this.GetColumn("TotalPosts");
                }
            }
            				
   			public static string TotalPostsColumn{
			      get{
        			return "TotalPosts";
      			}
		    }
           

            public IColumn NewPostsInPast24Hours{
                get{
                    return this.GetColumn("NewPostsInPast24Hours");
                }
            }
            				
   			public static string NewPostsInPast24HoursColumn{
			      get{
        			return "NewPostsInPast24Hours";
      			}
		    }
           

            public IColumn NewTopicsInPast24Hours{
                get{
                    return this.GetColumn("NewTopicsInPast24Hours");
                }
            }
            				
   			public static string NewTopicsInPast24HoursColumn{
			      get{
        			return "NewTopicsInPast24Hours";
      			}
		    }
           

            public IColumn NewUsersInPast24Hours{
                get{
                    return this.GetColumn("NewUsersInPast24Hours");
                }
            }
            				
   			public static string NewUsersInPast24HoursColumn{
			      get{
        			return "NewUsersInPast24Hours";
      			}
		    }
           

            public IColumn NewestUserID{
                get{
                    return this.GetColumn("NewestUserID");
                }
            }
            				
   			public static string NewestUserIDColumn{
			      get{
        			return "NewestUserID";
      			}
		    }
           
                    
        }
        

        /// <summary>
        /// Table: MF_TopicThanks
        /// Primary Key: 
        /// </summary>

        public class TopicThanksTable: DatabaseTable {
            
            public TopicThanksTable(IDataProvider provider):base("MF_TopicThanks",provider){
                ClassName = "TopicThank";
                SchemaName = "dbo";
                


                Columns.Add(new DatabaseColumn("TopicId", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Int32,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });


                Columns.Add(new DatabaseColumn("UserId", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Int32,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });


                Columns.Add(new DatabaseColumn("Created", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.DateTime,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });


                Columns.Add(new DatabaseColumn("UserName", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 64
                });
                    
                
                
            }
            

            public IColumn TopicId{
                get{
                    return this.GetColumn("TopicId");
                }
            }
            				
   			public static string TopicIdColumn{
			      get{
        			return "TopicId";
      			}
		    }
           

            public IColumn UserId{
                get{
                    return this.GetColumn("UserId");
                }
            }
            				
   			public static string UserIdColumn{
			      get{
        			return "UserId";
      			}
		    }
           

            public IColumn Created{
                get{
                    return this.GetColumn("Created");
                }
            }
            				
   			public static string CreatedColumn{
			      get{
        			return "Created";
      			}
		    }
           

            public IColumn UserName{
                get{
                    return this.GetColumn("UserName");
                }
            }
            				
   			public static string UserNameColumn{
			      get{
        			return "UserName";
      			}
		    }
           
                    
        }
        

        /// <summary>
        /// Table: MF_Users
        /// Primary Key: UserId
        /// </summary>

        public class UsersTable: DatabaseTable {
            
            public UsersTable(IDataProvider provider):base("MF_Users",provider){
                ClassName = "User";
                SchemaName = "dbo";
                


                Columns.Add(new DatabaseColumn("UserId", this)
                {
	                IsPrimaryKey = true,
	                DataType = DbType.Int32,
	                IsNullable = false,
	                AutoIncrement = true,
	                IsForeignKey = false,
	                MaxLength = 0
                });


                Columns.Add(new DatabaseColumn("RoleId", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Int32,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });


                Columns.Add(new DatabaseColumn("UserName", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 50
                });


                Columns.Add(new DatabaseColumn("Pwd", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.AnsiString,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 90
                });


                Columns.Add(new DatabaseColumn("Email", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.AnsiString,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 63
                });


                Columns.Add(new DatabaseColumn("FullName", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 63
                });


                Columns.Add(new DatabaseColumn("Signature", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = -1
                });


                Columns.Add(new DatabaseColumn("Avatar", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 80
                });


                Columns.Add(new DatabaseColumn("RegDate", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.DateTime,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });


                Columns.Add(new DatabaseColumn("LastLogin", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.DateTime,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });


                Columns.Add(new DatabaseColumn("TotalVisits", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Int32,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });


                Columns.Add(new DatabaseColumn("TotalPosts", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Int32,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });


                Columns.Add(new DatabaseColumn("ThanksReceived", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Int32,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });


                Columns.Add(new DatabaseColumn("ThanksSent", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Int32,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });


                Columns.Add(new DatabaseColumn("IsActived", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Boolean,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });


                Columns.Add(new DatabaseColumn("ActiveCode", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.AnsiString,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 50
                });


                Columns.Add(new DatabaseColumn("Sex", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Byte,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });


                Columns.Add(new DatabaseColumn("Birthday", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.DateTime,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });


                Columns.Add(new DatabaseColumn("Address", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 136
                });


                Columns.Add(new DatabaseColumn("YahooId", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 36
                });


                Columns.Add(new DatabaseColumn("SkypeId", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 36
                });


                Columns.Add(new DatabaseColumn("MSN", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 36
                });


                Columns.Add(new DatabaseColumn("AOL", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 36
                });


                Columns.Add(new DatabaseColumn("Website", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 99
                });


                Columns.Add(new DatabaseColumn("Blog", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 99
                });


                Columns.Add(new DatabaseColumn("Gallery", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 99
                });


                Columns.Add(new DatabaseColumn("TimeZone", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Double,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });


                Columns.Add(new DatabaseColumn("SkinPath", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 36
                });
                    
                
                
            }
            

            public IColumn UserId{
                get{
                    return this.GetColumn("UserId");
                }
            }
            				
   			public static string UserIdColumn{
			      get{
        			return "UserId";
      			}
		    }
           

            public IColumn RoleId{
                get{
                    return this.GetColumn("RoleId");
                }
            }
            				
   			public static string RoleIdColumn{
			      get{
        			return "RoleId";
      			}
		    }
           

            public IColumn UserName{
                get{
                    return this.GetColumn("UserName");
                }
            }
            				
   			public static string UserNameColumn{
			      get{
        			return "UserName";
      			}
		    }
           

            public IColumn Pwd{
                get{
                    return this.GetColumn("Pwd");
                }
            }
            				
   			public static string PwdColumn{
			      get{
        			return "Pwd";
      			}
		    }
           

            public IColumn Email{
                get{
                    return this.GetColumn("Email");
                }
            }
            				
   			public static string EmailColumn{
			      get{
        			return "Email";
      			}
		    }
           

            public IColumn FullName{
                get{
                    return this.GetColumn("FullName");
                }
            }
            				
   			public static string FullNameColumn{
			      get{
        			return "FullName";
      			}
		    }
           

            public IColumn Signature{
                get{
                    return this.GetColumn("Signature");
                }
            }
            				
   			public static string SignatureColumn{
			      get{
        			return "Signature";
      			}
		    }
           

            public IColumn Avatar{
                get{
                    return this.GetColumn("Avatar");
                }
            }
            				
   			public static string AvatarColumn{
			      get{
        			return "Avatar";
      			}
		    }
           

            public IColumn RegDate{
                get{
                    return this.GetColumn("RegDate");
                }
            }
            				
   			public static string RegDateColumn{
			      get{
        			return "RegDate";
      			}
		    }
           

            public IColumn LastLogin{
                get{
                    return this.GetColumn("LastLogin");
                }
            }
            				
   			public static string LastLoginColumn{
			      get{
        			return "LastLogin";
      			}
		    }
           

            public IColumn TotalVisits{
                get{
                    return this.GetColumn("TotalVisits");
                }
            }
            				
   			public static string TotalVisitsColumn{
			      get{
        			return "TotalVisits";
      			}
		    }
           

            public IColumn TotalPosts{
                get{
                    return this.GetColumn("TotalPosts");
                }
            }
            				
   			public static string TotalPostsColumn{
			      get{
        			return "TotalPosts";
      			}
		    }
           

            public IColumn ThanksReceived{
                get{
                    return this.GetColumn("ThanksReceived");
                }
            }
            				
   			public static string ThanksReceivedColumn{
			      get{
        			return "ThanksReceived";
      			}
		    }
           

            public IColumn ThanksSent{
                get{
                    return this.GetColumn("ThanksSent");
                }
            }
            				
   			public static string ThanksSentColumn{
			      get{
        			return "ThanksSent";
      			}
		    }
           

            public IColumn IsActived{
                get{
                    return this.GetColumn("IsActived");
                }
            }
            				
   			public static string IsActivedColumn{
			      get{
        			return "IsActived";
      			}
		    }
           

            public IColumn ActiveCode{
                get{
                    return this.GetColumn("ActiveCode");
                }
            }
            				
   			public static string ActiveCodeColumn{
			      get{
        			return "ActiveCode";
      			}
		    }
           

            public IColumn Sex{
                get{
                    return this.GetColumn("Sex");
                }
            }
            				
   			public static string SexColumn{
			      get{
        			return "Sex";
      			}
		    }
           

            public IColumn Birthday{
                get{
                    return this.GetColumn("Birthday");
                }
            }
            				
   			public static string BirthdayColumn{
			      get{
        			return "Birthday";
      			}
		    }
           

            public IColumn Address{
                get{
                    return this.GetColumn("Address");
                }
            }
            				
   			public static string AddressColumn{
			      get{
        			return "Address";
      			}
		    }
           

            public IColumn YahooId{
                get{
                    return this.GetColumn("YahooId");
                }
            }
            				
   			public static string YahooIdColumn{
			      get{
        			return "YahooId";
      			}
		    }
           

            public IColumn SkypeId{
                get{
                    return this.GetColumn("SkypeId");
                }
            }
            				
   			public static string SkypeIdColumn{
			      get{
        			return "SkypeId";
      			}
		    }
           

            public IColumn MSN{
                get{
                    return this.GetColumn("MSN");
                }
            }
            				
   			public static string MSNColumn{
			      get{
        			return "MSN";
      			}
		    }
           

            public IColumn AOL{
                get{
                    return this.GetColumn("AOL");
                }
            }
            				
   			public static string AOLColumn{
			      get{
        			return "AOL";
      			}
		    }
           

            public IColumn Website{
                get{
                    return this.GetColumn("Website");
                }
            }
            				
   			public static string WebsiteColumn{
			      get{
        			return "Website";
      			}
		    }
           

            public IColumn Blog{
                get{
                    return this.GetColumn("Blog");
                }
            }
            				
   			public static string BlogColumn{
			      get{
        			return "Blog";
      			}
		    }
           

            public IColumn Gallery{
                get{
                    return this.GetColumn("Gallery");
                }
            }
            				
   			public static string GalleryColumn{
			      get{
        			return "Gallery";
      			}
		    }
           

            public IColumn TimeZone{
                get{
                    return this.GetColumn("TimeZone");
                }
            }
            				
   			public static string TimeZoneColumn{
			      get{
        			return "TimeZone";
      			}
		    }
           

            public IColumn SkinPath{
                get{
                    return this.GetColumn("SkinPath");
                }
            }
            				
   			public static string SkinPathColumn{
			      get{
        			return "SkinPath";
      			}
		    }
           
                    
        }
        

        /// <summary>
        /// Table: MF_Roles
        /// Primary Key: RoleId
        /// </summary>

        public class RolesTable: DatabaseTable {
            
            public RolesTable(IDataProvider provider):base("MF_Roles",provider){
                ClassName = "Role";
                SchemaName = "dbo";
                


                Columns.Add(new DatabaseColumn("RoleId", this)
                {
	                IsPrimaryKey = true,
	                DataType = DbType.Int32,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });


                Columns.Add(new DatabaseColumn("RoleName", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.String,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 100
                });


                Columns.Add(new DatabaseColumn("IsAutoStart", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Boolean,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });


                Columns.Add(new DatabaseColumn("IsAdmin", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Boolean,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });


                Columns.Add(new DatabaseColumn("CssClass", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.AnsiString,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 20
                });


                Columns.Add(new DatabaseColumn("AccessMask", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.AnsiString,
	                IsNullable = true,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 4000
                });


                Columns.Add(new DatabaseColumn("AllowLogin", this)
                {
	                IsPrimaryKey = false,
	                DataType = DbType.Boolean,
	                IsNullable = false,
	                AutoIncrement = false,
	                IsForeignKey = false,
	                MaxLength = 0
                });
                    
                
                
            }
            

            public IColumn RoleId{
                get{
                    return this.GetColumn("RoleId");
                }
            }
            				
   			public static string RoleIdColumn{
			      get{
        			return "RoleId";
      			}
		    }
           

            public IColumn RoleName{
                get{
                    return this.GetColumn("RoleName");
                }
            }
            				
   			public static string RoleNameColumn{
			      get{
        			return "RoleName";
      			}
		    }
           

            public IColumn IsAutoStart{
                get{
                    return this.GetColumn("IsAutoStart");
                }
            }
            				
   			public static string IsAutoStartColumn{
			      get{
        			return "IsAutoStart";
      			}
		    }
           

            public IColumn IsAdmin{
                get{
                    return this.GetColumn("IsAdmin");
                }
            }
            				
   			public static string IsAdminColumn{
			      get{
        			return "IsAdmin";
      			}
		    }
           

            public IColumn CssClass{
                get{
                    return this.GetColumn("CssClass");
                }
            }
            				
   			public static string CssClassColumn{
			      get{
        			return "CssClass";
      			}
		    }
           

            public IColumn AccessMask{
                get{
                    return this.GetColumn("AccessMask");
                }
            }
            				
   			public static string AccessMaskColumn{
			      get{
        			return "AccessMask";
      			}
		    }
           

            public IColumn AllowLogin{
                get{
                    return this.GetColumn("AllowLogin");
                }
            }
            				
   			public static string AllowLoginColumn{
			      get{
        			return "AllowLogin";
      			}
		    }
           
                    
        }
        

}